local extension = Package:new("warlords_generals")
extension.extensionName = "warlords_heg"

local warheg_mode = require "packages.warlords_heg.pkg.gamemodes.hegemony"
extension:addGameMode(warheg_mode)

extension.game_modes_whitelist = {"warlords_heg_mode"}
extension.game_modes_blacklist = {"aaa_role_mode", "m_1v1_mode", "m_1v2_mode", "m_2v2_mode", "zombie_mode", "chaos_mode"}

extension:loadSkillSkelsByPath("./packages/warlords_heg/pkg/generals/skills")

Fk:loadTranslationTable{
    ["warlords_generals"] = "群雄割据专属",
    ["war_heg"] = "群雄割据",
}

General:new(extension, "war_heg__caochun", "wei", 4):addSkills{ "shanjia" }
Fk:loadTranslationTable{
  ["war_heg__caochun"] = "曹纯",
  ["#war_heg__caochun"] = "虎豹骑首",
  ["illustrator:war_heg__caochun"] = "depp",

  ["~war_heg__caochun"] = "银甲在身，竟败于你手！",
}

--[[General:new(extension, "war_heg__wuyi", "shu", 4):addSkills{ "ty_ex__benxi" }
Fk:loadTranslationTable{
  ["war_heg__wuyi"] = "界吴懿",
  ["#war_heg__wuyi"] = "建兴鞍辔",
  ["cv:war_heg__wuyi"] = "宋国庆",
  ["illustrator:war_heg__wuyi"] = "青岛磐蒲",

  ["~war_heg__wuyi"] = "终有疲惫之时！休矣！",
}]]--`

local guansuo = General:new(extension, "war_heg__guansuo", "shu", 4)
guansuo:addSkills { "war_heg__zhengnan", "xiefang" }
guansuo:addRelatedSkills { "hs__wusheng", "dangxian", "new_ld__zhiman" }
Fk:loadTranslationTable{
  ["war_heg__guansuo"] = "关索",
  ["#war_heg__guansuo"] = "倜傥孑侠",
  ["designer:war_heg__guansuo"] = "千幻",
  ["illustrator:war_heg__guansuo"] = "depp",

  ["$hs__wusheng_war_heg__guansuo"] = "逆贼，可识得关氏之勇？",
  ["$dangxian_war_heg__guansuo"] = "各位将军，且让小辈先行出战！",
  ["$new_ld__zhiman_war_heg__guansuo"] = "蛮夷可抚，不可剿！",
  ["~war_heg__guansuo"] = "只恨天下未平，空留遗志。",
}

General:new(extension, "war_heg__jiexusheng", "wu", 4):addSkills{ "m_ex__pojun" }
Fk:loadTranslationTable{
  ["war_heg__jiexusheng"] = "界徐盛",
  ["#war_heg__jiexusheng"] = "江东的铁壁",
  ["cv:war_heg__jiexusheng"] = "金垚",
  ["illustrator:war_heg__jiexusheng"] = "铁杵文化",
  ["~war_heg__jiexusheng"] = "盛只恨，不能再为主公，破敌致胜了。",
}

General(extension, "war_heg__himiko", "qun", 3, 3, General.Female):addSkills{"guishu", "yuanyuk"}
Fk:loadTranslationTable{
  ["war_heg__himiko"] = '卑弥呼', -- 十年心版
  ["#war_heg__himiko"] = "邪马台的女王",
  ["illustrator:war_heg__himiko"] = "聚一_小道恩",
  ["designer:war_heg__himiko"] = "淬毒",

  ["~war_heg__himiko"] = "我还会从黄泉比良坂回来的……",
}

--[[General:new(extension, "war_heg__caochong", "wei", 3):addSkills { "chengxiang", "renxin" }
Fk:loadTranslationTable{
  ["war_heg__caochong"] = "曹冲",
  ["#war_heg__caochong"] = "仁爱的神童",
  ["cv:war_heg__caochong"] = "水原",
  ["illustrator:war_heg__caochong"] = "amo",

  ["~war_heg__caochong"] = "子桓哥哥……",
}]]--

--[[General:new(extension, "war_heg__duyu", "qun", 4):addSkills{ "heg__wuku","heg__miewu" }
Fk:loadTranslationTable{
  ["war_heg__duyu"] = "杜预",
  ["#war_heg__duyu"] = "文成武德",
  ["illustrator:war_heg__duyu"] = "鬼画府",

  ["~war_heg__duyu"] = "洛水圆石，遂道向南，吾将以俭自完耳……",
}]]--

--[[General:new(extension, "war_heg__liuyan", "wild", 3):addSkills { "heg__tushe", "heg__limu" }
Fk:loadTranslationTable{
  ["war_heg__liuyan"] = "刘焉",
  ["#war_heg__liuyan"] = "裂土之宗",
  ["cv:war_heg__liuyan"] = "金垚",
  ["illustrator:war_heg__liuyan"] = "明暗交界",

  ["~war_heg__liuyan"] = "背疮难治，世子难继。",
}]]--

local wenyang = General:new(extension, "war_heg__wenyang", "wei", 4)
wenyang.subkingdom = "wu"
wenyang:addCompanions("ze_heg__wenqin")
wenyang:addSkills{ "heg__quedi", "heg__choujue" }
Fk:loadTranslationTable{
  ["war_heg__wenyang"] = "文鸯",
  ["#war_heg__wenyang"] = "独骑破军",
  ["illustrator:war_heg__wenyang"] = "鬼画府",

  ["~war_heg__wenyang"] = "半生功业，而见疑于一家之言，岂能无怨！",
}

local huangquan = General:new(extension, "war_heg__huangquan", "shu", 3)
huangquan.subkingdom = "wei"
huangquan:addSkills{ "heg__dianhu","heg__jianji" }
Fk:loadTranslationTable{
  ["war_heg__huangquan"] = "黄权",
  ["#war_heg__huangquan"] = "道绝殊途",
  ["illustrator:war_heg__huangquan"] = "匠人绘",

  ["~war_heg__huangquan"] = "魏王厚待于我，降魏又有何错？",
}

local xugong = General:new(extension, "war_heg__xugong", "wu", 3)
xugong:addCompanions("ze_heg__yanbaihu")
xugong:addSkills { "heg__biaozhao","heg__yechou"  }
xugong.subkingdom = "qun"
Fk:loadTranslationTable{
  ["war_heg__xugong"] = "许贡",
  ["#war_heg__xugong"] = "独计击流",
  ["illustrator:war_heg__xugong"] = "君桓文化",

  ["~war_heg__xugong"] = "此表非我所写，岂可污我！",
}

return extension